package com.hong.concurrent.chapter17;

/**
 * @Author csh
 * @Description
 * @Date 2018/7/11 21:25
 */
public class Request {
    /**名称*/
    private final String name;
    /**位数*/
    private final int number;


    public Request(String name, int number) {
        this.name = name;
        this.number = number;
    }

    public void execute(){
        System.out.println(Thread.currentThread().getName()+ " executed "+this);
    }

    @Override
    public String toString() {
        return "Request{" +
                "name='" + name + '\'' +
                ", number=" + number +
                '}';
    }
}
